package org.dtrd.modules.faq.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.faq.entity.po.DtrdExtEmsYwFaqs;

import java.util.Date;

/**
 * @author qr
 * @date 2021/12/7 10:30
 */
@ApiModel("常见问题列表数据")
@Getter
@Setter
public class FaqListInfo {

    private Integer id;

    @ApiModelProperty(value = "常见问题", example = "1")
    private String faqQuestion;

    @ApiModelProperty("图片")
    private String faqThumb;

    @ApiModelProperty("标签")
    private String tips;

    @ApiModelProperty("创建时间")
    private Date createTime;

    public FaqListInfo(DtrdExtEmsYwFaqs po) {
        id = po.getDataId();
        faqQuestion = po.getFaqQuestion();
        faqThumb = po.getFaqThumb();
        createTime = po.getFaqCreateTime();
    }
}
